package com.education.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.education.dao.CustomerDAO;
import com.education.model.Customer;
 
public class CustomerDAOImpl extends HibernateDaoSupport implements CustomerDAO{
	

	//add the customer
	public boolean addCustomer(Customer customer){
		
//		getHibernateTemplate().save(customer);
		System.out.println("Add a customer in db!");
		return true;
		
	}

	
	//return all the customers in list
//	public List<Customer> listCustomer(){
//		
//		return getHibernateTemplate().find("from Customer");
//		
//	}
	
}